//
//  XTStrategyTableViewCell.m
//  BeautifulHome
//
//  Created by dlios on 15-5-13.
//  Copyright (c) 2015年 ACE. All rights reserved.
//

#import "XTStrategyTableViewCell.h"

@implementation XTStrategyTableViewCell
- (void)dealloc
{
    [_label1 release];
    [_label2 release];
    [_myImageView release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // 创建label
        self.label1 = [[UILabel alloc] init];
        [self.contentView addSubview:_label1];
        [_label1 release];
        self.label2 = [[UILabel alloc] init];
        
        [self.contentView addSubview:_label2];
        [_label2 release];
        self.myImageView = [[UIImageView alloc] init];
        [self.contentView addSubview:_myImageView];
        [_myImageView release];
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    [_label1 setFont:[UIFont systemFontOfSize:20]];
    _label1.frame = CGRectMake(100, 15, self.contentView.frame.size.width - 120, 25);
    [_label2 setFont:[UIFont systemFontOfSize:15]];
    _label2.frame = CGRectMake(100, 50, self.contentView.frame.size.width - 120, 20);
    _myImageView.frame = CGRectMake(8, 10, 80, 60);
    
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
